from pyecharts.charts import Pie
from pyecharts import options

data = [("南昌",20),("北京",50),("上海",80),("成都",40)]

pie=Pie()
pie.add("单位/个",data)
pie.set_global_opts(title_opts=options.TitleOpts(title="各城市岗位数量图"))
pie.render("pienum.html")